<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>双向绑定</title>
</head>
<body>
<div id="app">
    输入的文本：<input type="text" v-model="msg"> {{msg}}
</div>

<!--导入Vue-->
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
    var vm = new Vue({
        el:"#app",
        data: {
            msg: ''
        }
    });
</script>
</body>
</html>
